// 资源列表相关API
import request from "@/utils/request";

export function fetchList(params) {
  return request({
    url: "/hotTopic/page",
    method: "get",
    params: params
  });
}

export function createResource(data) {
  return request({
    url: "/hotTopic",
    method: "post",
    data: data
  });
}

export function updateResource(data) {
  return request({
    url: "/hotTopic",
    method: "put",
    data: data
  });
}

export function deleteResource(id) {
  return request({
    url: "/hotTopic/" + id,
    method: "delete"
  });
}

export function getProductData(id) {
  return request({
    url: "/hotTopic/" + id,
    method: "get"
  });
}
